package com.shiminghui.String;

public class StringDemo1 {
    public static void main(String[] args) {
        String s = new String("abc");
        String string = "12313";

        String string1 = new String();
        System.out.println(string1);

        char[] arr = {'1','2','3'};

        String string2 = new String(arr);
        System.out.println( (String) arr.toString());


        byte[] bytes = {12,34,56,100};
        String string3 = new String(bytes);
        System.out.println(string3);

        //尽量直接赋值,节省空间.

        String string4 = "ABCD";
        String string5 = "abcd";
        System.out.println(string5.equalsIgnoreCase(string4));



    }

}
